<?php

abstract class XB_Router_Abstract {
	private $_Controller = '';
	private $_ControllerSuffix = 'Controller';
	private $_Action = '';
	private $_ActionSuffix = 'Action';
	private $_Uri = '';
	
	protected function getController(){
		return $this->_Controller;
	}
	
	protected function getAction(){
		return $this->_Action;
	}
	
	protected function setController($controller){
		if($controller){
			$this->_Controller = $controller;
			return ;
		}
		$this->_Controller = 'index';
	}
	
	protected function setAction($action){
		if($action){
			$this->_Action = $action;
			return ;
		}
		$this->_Action = 'index';
	}
	
	protected function setUri($uri){
		$this->_Uri = $uri;
	}
	
	protected function getUri(){
		return $this->_Uri;
	}
	
	protected function setControllerSuffix($controllerSuffix){
		$this->_ControllerSuffix = $controllerSuffix;
	}
	
	protected function getControllerSuffix(){
		return $this->_ControllerSuffix ;
	}
	
	protected function setActionSuffix($actionSuffix){
		$this->_ActionSuffix = $actionSuffix;
	}
	
	protected function getActionSuffix(){
		return $this->_ActionSuffix ;
	}
	
	protected abstract function run();
}

?>